import { atom } from 'recoil'
// import { getSelectTree } from '@/pages/user/login/service/service'
// import { isNullData, convertDataToCascaderFormat } from '@/utils'
// // 省市区
export const proviencsData = atom({
  key: 'proviencsData',
  default: [],
})
// const scopen = JSON.parse(localStorage.getItem('platformDetailsInfoSelectValues'))
// // console.log('🦢🦢', scopen.manageScope)
// export const proviencsDataSelector = selector({
//   key: 'proviencsDataSelector',
//   get: async (): Promise<any> => {
//     const res = await getSelectTree({ mangeScopend: scopen.manageScope })
//     // console.log('看一下三级联动数据是什么样子', res.data)
//     if (isNullData(res)) {
//       return convertDataToCascaderFormat(res.data)
//     }
//     return []
//   },
// })
